[manila-csi-plugin] Restore --nodeid and --nodeaz as optional overrides#3140
[manila-csi-plugin] Restore --nodeid and --nodeaz as optional overrides#3140gouthampacha wants to merge 1 commit into
Conversation
|
@kayrus @yahor-kurachkin could you review this when you get a chance? |
| ShareName string `name:"shareName" value:"optionalIf:shareID=." precludes:"shareID"` | ||
| ShareAccessID string `name:"shareAccessID" value:"optionalIf:shareAccessIDs=." precludes:"shareAccessIDs"` // Keep this for backwards compatibility | ||
| ShareAccessIDs string `name:"shareAccessIDs" value:"optionalIf:shareAccessID=." precludes:"shareAccessID"` | ||
| ShareAccessID string `name:"shareAccessID" value:"optional"` // Deprecated: use shareAccessIDs |
There was a problem hiding this comment.
could you please make this change in a separate PR?
There was a problem hiding this comment.
ugh, this is my bad, it was a part of a different PR: #3132
| } | ||
|
|
||
| err = d.SetupNodeService(metadata) | ||
| err = d.SetupNodeService(nodeID, nodeAZ, md) |
There was a problem hiding this comment.
this change needs to be aligned with #3141
@gouthampacha can you check the #3141 as well?
yahor-kurachkin
left a comment
There was a problem hiding this comment.
Just a minor comment about the testing approach. Otherwise LGTM.
653de24 to
29c5534
Compare
Un-deprecate the --nodeid and --nodeaz flags so that they can be used as alternatives to the metadata service for node identity. When set, the flag values are used directly; when unset, the driver falls back to the metadata service as before. This allows Manila CSI to work on nodes that are not OpenStack VMs, such as bare metal clusters or edge deployments, where the metadata service is unavailable.
29c5534 to
7dfe7bf
Compare
|
/test pull-cloud-provider-openstack-check |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kayrus The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Un-deprecates the
--nodeidand--nodeazflags so they can be used asalternatives to the metadata service for node identity.
#2734 aligned Manila CSI with how Cinder CSI handles node identity by making
the metadata service mandatory. For Cinder this makes sense: the node must be
a Nova VM for volume attach/detach. Manila doesn't have that constraint. Shares
mount via NFS or CEPHFS on the host, and the node doesn't need to be a Nova
instance.
When
--nodeidis set, the flag value is used directly. When unset, the driverfalls back to the metadata service (current behavior). Same for
--nodeaz.OpenStack deployments are unaffected.
Which issue this PR fixes(if applicable):
Fixes #3139
Special notes for reviewers:
Tested end-to-end on a DevStack environment with Manila LVM:
--nodeid=test-node-from-flag: CSINode registers with the flag value,PVC binds, share mounts, pod reads/writes data
--nodeid(default): CSINode registers with the metadata-providedUUID, PVC binds, share mounts, pod reads/writes data
Release note: